import React, { Component } from 'react'
import './index.css'

export default class Weather extends Component {
	state = {isHot:true,wind:'7级大风'}
	render() {
		const {isHot,wind} = this.state
		return (
			<div className="weather">
				<h3>我是Weather组件</h3>
				<ul>
					<li>天气很：{isHot ? '炎热':'凉爽'}</li>
					<li>风力：{wind}</li>
				</ul>
			</div>
		)
	}
}
